package com.example.emos.wx.controller;

import com.example.emos.wx.common.util.R;
import com.example.emos.wx.controller.form.TestSayHelloForm;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping("/test")
@Api("测试接口")
public class test {
    @PostMapping("/hello")
    @ApiOperation("第一个接口")
    public R sayHello(@Valid @RequestBody TestSayHelloForm form){

        return R.ok().put("message","Hello，"+form.getName());
    }
}
